#pragma once
#include "win_event_lock.h"
#include "mutex.h"

namespace el
{
	class EventLoop;
	class Thread;
	class EventLoopThread :noncopyable
	{
	public:
		EventLoopThread();
		~EventLoopThread();

		EventLoop * startLoop();
		void quit();
		void waitLoop();

	protected:
		void run();

	private:
		Thread * thread_;
		EventLoop * loop_;
		WinEventLock event_lock_;
		Mutex mutex_;
	};

}


